import request from "@/utils/request"

// 获取轮播图
export function getBanner(distributionSite = 1) {
    return request({
        url: "/home/banner?distributionSite=" + distributionSite,
        method: "GET"
    })
}

// 获取新鲜好物
export function getNewGoods() {
    return request({
        url: '/home/new',
        method: "GET"
    })
}

// 获取人气推荐
export function getRecommendGoods() {
    return request({
        url: '/home/hot',
        method: "GET"
    })
}

// 获取产品列表
export function getProduct() {
    return request({
        url: '/home/goods',
        method: 'GET',
    })
}